import datetime
import os
import sys

import pyarrow as pa
import pyarrow.parquet as pq


files  = os.listdir()
for f in files:
    if f.endswith('.parquet'):
        df = pq.read_table(u'./'+f).to_pandas()
        print(df)
        df.to_excel(f + datetime.datetime.now().strftime('%Y%m%d%H%M%S')+'.xlsx')